Skip to content

use CPP_CXX_ABI for Python libraries#1960

Merged
wanghan-iapcm merged 1 commit into
deepmodeling:develfrom
njzjz:fix-1958
Oct 3, 2022
Merged

use CPP_CXX_ABI for Python libraries#1960
wanghan-iapcm merged 1 commit into
deepmodeling:develfrom
njzjz:fix-1958

Conversation

@njzjz

@njzjz njzjz commented Sep 30, 2022

Copy link
Copy Markdown
Member

Fixes #1958. There was an ImportError from Python when TF and TF's dependency were not installed in the same directory, and one built with PEP 517.
The reason is that only TF's parent directory is added to sys.path.

Fixes deepmodeling#1958. There was an ImportError from Python when TF and TF's dependency were not installed in the same directory, and one built with PEP 517.

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@codecov-commenter

codecov-commenter commented Sep 30, 2022

Copy link
Copy Markdown

Codecov Report

Base: 63.84% // Head: 63.76% // Decreases project coverage by -0.07% ⚠️

Coverage data is based on head (03d3b49) compared to base (75256bb).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #1960      +/-   ##
==========================================
- Coverage   63.84%   63.76%   -0.08%     
==========================================
  Files         180      180              
  Lines       16389    16348      -41     
==========================================
- Hits        10464    10425      -39     
+ Misses       5925     5923       -2     
Impacted Files Coverage Δ
source/op/_quantize_nvnmd_grad.py 40.00% <0.00%> (-5.46%) ⬇️
source/op/_matmul_nvnmd_grad.py 30.76% <0.00%> (-4.95%) ⬇️
source/op/_map_nvnmd_grad.py 20.00% <0.00%> (-3.81%) ⬇️
source/op/_tanh2_nvnmd_grad.py 20.00% <0.00%> (-3.81%) ⬇️
source/op/_tanh4_nvnmd_grad.py 18.18% <0.00%> (-3.56%) ⬇️
deepmd/train/trainer.py 80.35% <0.00%> (-0.31%) ⬇️
deepmd/loss/ener.py 48.51% <0.00%> (-0.22%) ⬇️
deepmd/utils/argcheck.py 89.96% <0.00%> (-0.21%) ⬇️
deepmd/common.py 83.97% <0.00%> (-0.11%) ⬇️
deepmd/train/run_options.py 90.47% <0.00%> (-0.09%) ⬇️
... and 15 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@wanghan-iapcm wanghan-iapcm merged commit 9737b6d into deepmodeling:devel Oct 3, 2022
mingzhong15 pushed a commit to mingzhong15/deepmd-kit that referenced this pull request Jan 15, 2023
Fixes deepmodeling#1958. There was an ImportError from Python when TF and TF's
dependency were not installed in the same directory, and one built with
PEP 517.
The reason is that only TF's parent directory is added to `sys.path`.

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants